package com.caishi.lkx.order.ienum.status;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author by keray
 * date:2019/9/5 11:30
 * 用户资产状态
 */
public enum AssetsStatus {
    //
    effective("有效", 1),
    invalid("无效", 2),
    overdue("过期", 3),
    ;
    @Getter
    final
    String desc;

    @EnumValue
    @Getter
    final
    Integer code;

    AssetsStatus(String desc, Integer code) {
        this.desc = desc;
        this.code = code;
    }
//    public static AssetsStatus rpcType(RpcAssetsStatus type) {
//        return AssetsStatus.valueOf(type.name());
//    }
}
